package com.ohos.connect.devicecloud.auth.modular.login.api;

import com.ohos.connect.devicecloud.auth.api.AppUserAuthApi;
import com.ohos.connect.devicecloud.auth.modular.login.model.dto.ValidPhoneCodeDTO;
import com.ohos.connect.devicecloud.auth.modular.login.service.AuthService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;



@Service("appUserAuthApi")
public class AppUserAuthApiImpl implements AppUserAuthApi {

    @Resource
    private AuthService authService;

    @Override
    public void validPhoneCode(String phone, String validCode, String validCodeReqNo) {
        ValidPhoneCodeDTO validPhoneCodeDTO = new ValidPhoneCodeDTO();
        validPhoneCodeDTO.setPhone(phone);
        validPhoneCodeDTO.setValidCode(validCode);
        validPhoneCodeDTO.setValidCodeReqNo(validCodeReqNo);
        authService.validPhoneCode(validPhoneCodeDTO);
    }
}
